package com.liangwj.springbootdesignpatterns.createTypePatterns.abstractFactory;

import com.liangwj.springbootdesignpatterns.createTypePatterns.abstractFactory.C180.C180Factory;
import com.liangwj.springbootdesignpatterns.createTypePatterns.abstractFactory.E260.E260Factory;

public class AbstractFactoryDemoTest {
    public static void main(String[] args) {
        System.out.println("create C180 Benz car");
        BenzFactory benzFactory = new C180Factory();
        benzFactory.createCar();
        benzFactory.createNavigator();

        System.out.println("========================================");

        BenzFactory benzFactory1 = new E260Factory();
        benzFactory1.createCar();
        benzFactory1.createNavigator();
    }
}
